package com.huadao.cart_ccs.modle;

import com.huadao.cart_ccs.base.BaseSerialPortModel;
import com.huadao.cart_ccs.common.ByteUtils;
import com.huadao.cart_ccs.data.bo.CommandWord;
import com.huadao.cart_ccs.data.bo.Protocol;
import com.huadao.cart_ccs.data.bo.UltravioletLightBO;

/**
 * 紫外线灯
 */
public class UltravioletLightModle extends BaseSerialPortModel {

    public void open(){
        Protocol params= ByteUtils.generateProtocol(CommandWord.write,new byte[]{UltravioletLightBO.ModularType_UltravioletLight,UltravioletLightBO.ultravioletLight_NO1,UltravioletLightBO.on},null);
        serialPortRequest(params);
    }

    public void close(){
        Protocol params= ByteUtils.generateProtocol(CommandWord.write,new byte[]{UltravioletLightBO.ModularType_UltravioletLight,UltravioletLightBO.ultravioletLight_NO1,UltravioletLightBO.off},null);
        serialPortRequest(params);
    }
}
